package grammar.parser;

import java.util.List;

public class Decls extends BlockItem {
    private final List<Decl> decls;

    public Decls(List<Decl> decls) {
        this.decls = decls;
    }

    public static Decls buildDecls() {
        return new Decls(Decl.buildDecl());
    }

    @Override
    public void execute() {
        for (Decl decl : decls) {
            decl.execute();
        }
    }
}
